namespace ScrumSprintMonitor.ServerAdapter.TFS
{
    #region #using Directives

    using System.ComponentModel.Composition;

    using Infrastructure;
    using Infrastructure.IoC;

    using Microsoft.Practices.Unity;

    #endregion

    [Export(typeof(IModule))]
    internal class UnityModule : StandardModule
    {
        /// <summary>
        ///   Loads the module into the container.
        /// </summary>
        public override void Load()
        {
            Container.RegisterType<IConnection, TfsConnection>();
            Container.RegisterType<IBuildInfo, TfsBuildInfo>();
            Container.RegisterType<IWorkItemStore, TfsWorkItemStore>();
        }
    }
}